<?php
/**
 * initialisierung des frontends, hauptdatei
 * hier sollte eigentlich nichts geändert werden
 * 
 * @version $Id: verplan.php 485 2010-02-17 19:44:00Z dominikmoritz $
 * @package    verplan
 * @subpackage _ECR_SUBPACKAGE_
 * @author     EasyJoomla {@link http://www.easy-joomla.org Easy-Joomla.org}
 * @author     Dominik Moritz {@link http://www.dmoritz.bplaced.de}
 * @author     Created on 06-Sep-2009
 * 
 * Model: 		Daten
 * View: 		Ansicht
 * Controller: 	Ablaufsteuerung
 */

//-- No direct access
defined('_JEXEC') or die('=;)');

// Require the base controller
require_once( JPATH_COMPONENT.DS.'controller.php' );

// Require specific controller if requested
if( $controller = JRequest::getWord('controller'))
{
   $path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
   if( file_exists($path))
	{
       require_once $path;
   } else
   {
       $controller = '';
   }
}

// Create the controller
$classname    = 'verplanController'.$controller;
$controller   = new $classname( );

// Perform the Request task
$controller->execute( JRequest::getVar( 'task' ) );

// Redirect if set by the controller
$controller->redirect();